package com.xf.lastmall;

import com.xf.lastmall.config.FeignTimeoutConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication
@EnableAutoConfiguration
@EnableFeignClients(basePackages = {"com.xf.lastmall.order.feign"}, defaultConfiguration = FeignTimeoutConfiguration.class)
@EnableDiscoveryClient
@ComponentScan(basePackages = {"com.xf.lastmall.order"})
public class OrderServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderServiceApplication.class, args);
    }
}
